package com.irm.fegin;

import com.gadgets.framework.common.dto.HttpBaseResp;
import com.gadgets.framework.common.exception.GadgetsServiceException;
import com.irm.pojo.IrmMockInfo;
import com.irm.pojo.IrmMsgLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能说明：
 *
 * @author Unclexiu
 * @version V202101.00.000
 * @data 2022-09-15
 * 修改记录：  修改日期          修改人员    修改说明
 * 2022-09-15  xiujunqing   创建文件
 */
@SuppressWarnings("rawtypes")
@FeignClient(value = "gadgets-config-framework", contextId = "irmDraftController")
public interface IrmDraftController {

	/**
	 * 报文操作方法
	 * @return                              操作结果
	 * @throws GadgetsServiceException      异常信息
	 */
	@SuppressWarnings("rawtypes")
	@RequestMapping(method = {org.springframework.web.bind.annotation.RequestMethod.POST},value = "draft/oper.do")
	HttpBaseResp operationDraftOper(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 查询 MockInfo 表信息
	 * @return                              应答结果
	 * @throws GadgetsServiceException      异常信息
	 */
	@RequestMapping(method = {org.springframework.web.bind.annotation.RequestMethod.POST},value = "draft/queryMockInfo.do")
	HttpBaseResp<IrmMockInfo> queryMockInfo(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 报文信息查询
	 * @return                              应答结果
	 * @throws GadgetsServiceException      服务异常
	 */
	@RequestMapping(method = {org.springframework.web.bind.annotation.RequestMethod.POST},value = "draft/queryMsgLog.do")
	HttpBaseResp<IrmMsgLog> queryMsgLog(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 报文信息查询
	 * @return                              应答结果
	 * @throws GadgetsServiceException      服务异常
	 */
	@RequestMapping(method = {org.springframework.web.bind.annotation.RequestMethod.POST},value = "draft/queryMsgContent.do")
	HttpBaseResp<String> getMsgContant(@RequestParam Map map) throws GadgetsServiceException;

}
